package com.sg.dto.biz.bff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffPositionStaffingStatisticsDto
 * @使用场景
 */
@Data
public class BffPositionStaffingStatisticsDto
        extends PagedDto
        implements Serializable {

    /**
     * 职务ID:
     */
    @ApiModelProperty("职务ID")
    private String positionId;

    /**
     * 冗余职务名称:
     */
    @ApiModelProperty("冗余职务名称")
    private String positionIdName;

    /**
     * 职务级别ID:
     */
    @ApiModelProperty("职务级别ID")
    private String positionGradeId;

    /**
     * 职务级别名称:
     */
    @ApiModelProperty("职务级别名称")
    private String positionGradeName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffPositionStaffingStatisticsDto that = (BffPositionStaffingStatisticsDto) o;
        return positionId == that.positionId && positionIdName == that.positionIdName && positionGradeId == that.positionGradeId && positionGradeName == that.positionGradeName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), positionId, positionIdName, positionGradeId, positionGradeName);
    }

}
